import http from "./request"; //记得引入进来

class TeacherService extends http {
  constructor() {
    super();
    this.baseUrl = "/teacher"
  }

    // 获取教师信息
    getTeacherInfo(body) {
      return this.http({
        method: "get",
        url: "/getTeacherInfo",
        body,
      }, {
        loading: true
      });
    }

    // 更新教师信息
    updateTeacherInfo(body){
        return this.http({
            method:"post",
            url:"/updateTeacherInfo",
            body,
        },{
            loading:true
        })
    }
}

export default new TeacherService();